<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
    <title>微积分</title>
    <meta name="keywords" content="keyword ..." />
    <meta name="Description" content="description ..." />
    <!--<link href="favicon.ico" rel="shortcut icon" />-->
    <link href="css/global.css" rel="stylesheet" type="text/css" />
    <link href="css/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
	<jsp:include page="include/header.jsp" />
</div>
<div id="maincontent">
  <div id="topcontent">
    <div id="logincontent">
      <dl>
        <dt>标题标题</dt>
        <dd>本协议是您与京东商城网站（简称“本站”，网址：www.360buy.com）所有者（以下简称为“京东商城”）之间就京东商城网站服务等相关事宜所订立的契约，请您仔细阅读本注册协议，您点击“同意以下协议，提交”按钮后。</dd>
      </dl>
      <input type="button" class="loginbtn" onclick="showlogin()" value="" />
      <input type="button" class="regbtn" onclick="showreg()" value="" />
    </div>
    <div id="bannercontent">
    <div id="bannerlist">
     <ul>
      <s:iterator value="#application.activities" begin="0" end="4">
       <li><a href="<s:property value="id" />"><img src="<s:property value="pic" />" alt="" title="<s:property value="introduction" />" /></a></li>
     </s:iterator>
     </ul>
    </div>
     <div id="bannermenus">
     <div id="bannertitle"><a href="#">invisable</a></div>
       <ul>
        <s:iterator value="#application.activities"  begin="0" end="4" status="st">
         <li tabindex="<s:property value= '#st.index' />"><s:property value= '#st.index+1' /><span class="none"><a href="<s:property value="id" />"><s:property value="name" /></a></span></li>
       </s:iterator>
       </ul>
     </div>
    </div>
    <div id="couponcontent">
     <h3>热门优惠活动</h3>
     <ul>
     <s:iterator value="#application.activities"  begin="5" end="10"  status="st">
     <s:if test="#st.index==0">
       <li class="current">
    </s:if>
    <s:else>
       <li>
    </s:else>
        <dl>
          <dt><label>[<s:property value="id" />]</label><a href="<s:property value="id" />"><s:property value="name" /></a><span>￥79</span></dt>
          <dd>
            <div class="img"><a href="<s:property value="shopId" />"><img src="<s:property value="pic" />" alt="" title="<s:property value="introduction" />" /></a></div>
            <div class="info">
              <p>原价：</p>
              <p><del>100元</del></p>
              <p><span>57</span>人已购买</p>
            </div>
            <div class="clear"></div>
            <div class="discount">3折</div>
          </dd>
        </dl>
       </li>
      </s:iterator>
     </ul>
     <div class="more"><a href="#">更多优惠</a></div>
    </div>
    <div class="clear"></div>
  </div>
  <div id="bottomcontent">
    <div id="exchange">
      <h3><a href="#">热门兑换</a></h3>
      <div class="body">
        <div class="tabs">
          <ul>
            <li class="current" tabindex="1">热门微商城兑换</li>
            <li tabindex="2">热门微商家兑换</li>
          </ul>
        </div>
        <div class="bodycontent bodycontent1">
          <ul>
          <s:iterator value="#application.gifts" begin="0" end="4">
           <li>
             <div class="img"><a href="giftdetail?giftId=<s:property value="id" />"><img src="<s:property value="pic" />" alt="<s:property value="name" />" title="<s:property value="profile" />" /></a></div>
             <div class="info">
               <h4><a href="giftdetail?giftId=<s:property value="id" />"><s:property value="name" /></a></h4>
               <div class="price">￥<span><s:property value="price" />元</span></div>
               <div class="cart">已售出<label><s:property value="amount" /></label>件</div>
             </div>
             <div class="clear"></div>
           </li>
           </s:iterator>
          </ul>
        </div>
        <div class="bodycontent bodycontent2 none">
          <ul>
           <s:iterator value="#application.shopProducts"  begin="0" end="4">
           <li>
             <div class="img"><a href="<s:property value="id" />"><img src="<s:property value="pic" />" alt="<s:property value="name" />" title="<s:property value="profile" />" /></a></div>
             <div class="info">
               <h4><a href="<s:property value="id" />"><s:property value="name" /></a></h4>
               <div class="price">￥<span><s:property value="oldPrice" />元</span></div>
               <div class="cart">已售出<label><s:property value="amount" /></label>件</div>
             </div>
             <div class="clear"></div>
           </li>
           </s:iterator>
          </ul>
        </div>
      </div>
    </div>
    <div id="shopcontent">
      <div class="tabs">
      <div class="ad"><a href="#">聚划算上线，最高返利1%</a></div>
        <ul>
          <li tabindex="1" class="current">我常去的</li>
          <li tabindex="2">热门商家</li>
          <li tabindex="3">最新商家</li>
        </ul>
      </div>
      <div class="bodycontent bodycontent1">
      <s:if test="#session.user==null">
      <div class="unlogin"><p>登录后查看“我常去”的商城~</p><a class="loginlink" href="javascript:void(showlogin())""></a></div>
      </s:if>
      <s:else>
      <ul>
       <s:iterator value="#session.myHotShops">
         <li>
         <div class="inner">
         <a target="_blank" href="shopDetail?shopId=<s:property value="id" />"><img src="<s:property value="logo" />" alt="" title="" /></a><h4><a href="#"><s:property value="name" /></a></h4>
         <div class="none">
         <div class="btn"><a href="#" class="a1"></a><a href="#" class="a2"></a></div>
         <p><s:property value="profile" /></p>
         </div>
         </div>
         </li>
        </s:iterator>
       </ul>
      </s:else>
      </div>
      
      <div class="bodycontent bodycontent2 none">
       <ul>
       <s:iterator value="#application.hotShops">
         <li>
         <div class="inner">
         <a target="_blank" href="shopDetail?shopId=<s:property value="id" />"><img src="<s:property value="logo" />" alt="" title="" /></a><h4><a href="#"><s:property value="name" /></a></h4>
         <div class="none">
         <div class="btn"><a href="#" class="a1"></a><a href="#" class="a2"></a></div>
         <p><s:property value="profile" /></p>
         </div>
         </div>
         </li>
         </s:iterator>
       </ul>
      </div>
      <div class="bodycontent bodycontent3 none">
       <ul>
         <s:iterator value="#application.newShops">
         <li>
         <div class="inner">
         <a target="_blank" href="shopDetail?shopId=<s:property value="id" />"><img src="<s:property value="logo" />" alt="" title="" /></a><h4><a href="#"><s:property value="name" /></a></h4>
         <div class="none">
         <div class="btn"><a href="#" class="a1"></a><a href="#" class="a2"></a></div>
         <p><s:property value="profile" /></p>
         </div>
         </div>
         </li>
         </s:iterator>
       </ul>
      </div>
    </div>
    <div id="commentcontent">
     <h3><a href="#" class="more">更多&gt;&gt;</a>最新点评</h3>
     <ul>
     <s:iterator value="#application.comments">
       <li>
         <dl>
           <dt><a href="<s:property value="userId" />"><s:property value="userName" /></a><span>@</span><a href="<s:property value="shopId" />"><s:property value="shopName" /></a></dt>
           <dd><s:property value="content" /></dd>
         </dl>
         <div class="date">发布于：<s:date name="time" format="yyyy-MM-dd HH:mm:ss"/><!--s:property value="time" />  --></div>
       </li>
       </s:iterator>
     </ul>
    </div>
    <div class="clear"></div>
  </div>
</div>
<div id="footer">
	<jsp:include page="include/footer.jsp" />
</div>
<div id="fullcontent"><div class="fullcontent"></div></div>
<script language="javascript" type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script language="javascript" type="text/javascript" src="js/default.js"></script>
</body>
<s:debug></s:debug>
</html>
